//
//  LNNavigationControllerStack.h
//  LNDevelopExample
//
//  Created by wwww on 2018/9/5.
//  Copyright © 2018年 淘发现1iOS. All rights reserved.
// 视图堆栈

#import <Foundation/Foundation.h>

@protocol LNViewModelServices;

@interface LNNavigationControllerStack : NSObject
/// Returns a new navigation controller stack.
- (instancetype)initWithServices:(id<LNViewModelServices>)services;

/// Pushes the navigation controller.
///
/// navigationController - the navigation controller
- (void)pushNavigationController:(UINavigationController *)navigationController;

/// Pops the top navigation controller in the stack.
///
/// Returns the popped navigation controller.
- (UINavigationController *)popNavigationController;

/// Retrieves the top navigation controller in the stack.
///
/// Returns the top navigation controller in the stack.
- (UINavigationController *)topNavigationController;
@end
